package com.tmall.testgen.common.bo.interact.back;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import com.tmall.testgen.common.bo.interact.back.syn.BaseInfo;

/**
 * @author haojia
 * @date 2014-07-04
 */
public class InterceptInfo extends BaseInfo {
	
	public InterceptInfo(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		this.setExecuteTime( sdf.format(new Date()));
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 4212733192979574570L;
	/**
	 * 入参xml
	 */
	private List<Object> params;
	/**
	 * 出参xml
	 */
	private Object result;
	
	
	public Map<String,Object> getParamMap(){
		if(params==null)
			return null;
		
		Map<String,Object> result=new TreeMap<String,Object>();
		for(int i=0;i<params.size();i++){
			result.put(paramNames.get(i), params.get(i));
		}
		
		return result;
	}
	
	public List<Object> getParams() {
		return params;
	}
	public void setParams(List<Object> params) {
		this.params = params;
	}
	public Object getResult() {
		return result;
	}
	public void setResult(Object result) {
		this.result = result;
	}
	
	
	
}
